<template>
  <view class="service">
    <view class="service-box1">
      <view class="box1-top">退款商品</view>
      <view class="box1-content">
        <view class="top1-left">
          <image src="/static/image7.png"></image>
        </view>
        <view class="top1-right">
          <view class="right-top"> 男运动鞋秋季男鞋青少年正品透气 </view>
          <view class="right-center"> 标准白、42 </view>
          <view class="right-bottom"> ￥890.00<text>x1</text> </view>
        </view>
      </view>
    </view>
    <view class="service-box2">
      <view class="box2-top"> 选择服务类型 </view>
      <view class="box2-content" v-for="item in list" :key="item.id">
        <view class="box2-left">
          <image :src="item.url"></image>
          <text>{{ item.text }}</text>
        </view>
        <view class="box2-right">
          <image src="/static/右箭头.png"></image>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { id: 1, url: "/static/申请退款.png", text: "申请退款" },
        { id: 2, url: "/static/申请退货.png", text: "申请退货" },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
page {
  background-color: #f5f5f5;
}
.service {
  .service-box1 {
    width: 90%;
    margin: auto;
    margin-top: 20rpx;
    background-color: #fff;
    padding: 20rpx;
    border-radius: 20rpx;
    .box1-top {
      font-weight: bold;
    }
    .box1-content {
      display: flex;
      justify-content: space-between;
      // align-items: center;
      margin-top: 40rpx;
      .top1-left {
        width: 35%;
        image {
          width: 100%;
          height: 200rpx;
        }
      }
      .top1-right {
        width: 65%;
        position: relative;
        .right-top {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
        .right-center {
          color: #a2a2a2;
          font-size: 26rpx;
          margin-top: 20rpx;
        }
        .right-bottom {
          position: absolute;
          bottom: 30rpx;
          text {
            color: #a2a2a2;
            font-size: 26rpx;
            margin-left: 20rpx;
          }
        }
      }
    }
  }
  .service-box2 {
    width: 90%;
    margin: auto;
    margin-top: 20rpx;
    padding: 20rpx;
    background-color: #fff;
    border-radius: 30rpx;
    .box2-top {
      font-weight: bold;
    }
    .box2-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 40rpx;
      .box2-left {
        display: flex;
        align-items: center;
        text{
          margin-left: 10rpx;
        }
        image {
          width: 60rpx;
          height: 60rpx;
        }
      }
      .box2-right {
        image {
          width: 60rpx;
          height: 60rpx;
        }
      }
    }
  }
}
</style>
